package com.xy;

import com.xy.aggregation.College;
import com.xy.aggregation.ComputerCollege;
import com.xy.aggregation.InfoCollege;

import java.util.ArrayList;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/17 21:03
 * @description
 */
public class Client {
    public static void main(String[] args) {
        // 创建学院
        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();

        // 创建学院集合
        ArrayList<College> colleges = new ArrayList<>();
        colleges.add(computerCollege);
        colleges.add(infoCollege);

        // 输出信息类
        Output output = new Output(colleges);

        // 输出
        output.printCollege();
    }
}
